package com.zelix;

import java.io.PrintWriter;
import java.util.Enumeration;
import java.util.Hashtable;
import java.util.Vector;

public final class ad extends zc {

    private final bd m;
    private static String z[];

    public ad(it it1, Vector vector, nh nh1, bd bd) {
        super(it1, vector, nh1);
        m = bd;
        if (it1.k()) {
            a(it1.j(), it1.A());
            k();
            m();
            l();
        }
    }

    public void a(dd dd1, PrintWriter printwriter) {
        Enumeration enumeration;
        boolean flag;
        flag = tb.b;
        printwriter.println(z[2]);
        enumeration = e();
        while (enumeration.hasMoreElements()) {
            mt mt1 = (mt) enumeration.nextElement();
            String s = (String) super.f.get(mt1);
            String s1 = mt1.m();
            if (s1 != null && s1.length() > 0)
                dd1.c(s1, z[0] + s + "'");
            dd1.a(mt1, z[0] + s + "'");
        }
        Enumeration enumeration1 = f();
        while (enumeration1.hasMoreElements()) {
            lu lu1 = (lu) enumeration1.nextElement();
            String s2 = (String) super.j.get(lu1);
            dd1.a(lu1, z[0] + s2 + "'");
        }
    }

    public final void a(ed ed1, PrintWriter printwriter) {
        Enumeration enumeration;
        boolean flag;
        flag = tb.b;
        printwriter.println(z[1]);
        enumeration = e();
        while (enumeration.hasMoreElements()) {
            mt mt1 = (mt) enumeration.nextElement();
            String s = (String) super.f.get(mt1);
            ed1.a(mt1, z[0] + s + "'");
        }
        Enumeration enumeration1 = f();
        while (enumeration1.hasMoreElements()) {
            lu lu1 = (lu) enumeration1.nextElement();
            String s1 = (String) super.j.get(lu1);
            ed1.a(lu1, z[0] + s1 + "'");
        }
    }

    private final void k() {
        int i;
        Hashtable hashtable;
        Vector vector;
        int j;
        boolean flag;
        flag = tb.b;
        i = super.a.size();
        hashtable = new Hashtable();
        vector = new Vector();
        for (j = 0; j < i; j++) {
            Enumeration enumeration;
            gj gj1 = (gj) super.a.elementAt(j);
            enumeration = gj1.i();
            while (enumeration.hasMoreElements()) {
                Object obj = enumeration.nextElement();
                if (!hashtable.containsKey(obj)) {
                    hashtable.put(obj, obj);
                    vector.addElement(obj);
                }
            }
        }
        if (super.b.z() && vector.size() > 0) {

            int i1;
            super.c.println(z[14]);
            i1 = vector.size() - 1;
            for (; i1 >= 0; i1--) {
                super.c.println(z[16] + vector.elementAt(i1) + "\"");
            }
            i1 = vector.size() - 1;
            for (; i1 >= 0; i1--) {
                il il1 = (il) vector.elementAt(i1);
                if (!il1.w()) {
                    super.b.e(z[13] + il1 + z[17], true);
                    if (!flag)
                        continue;
                }
                if (il1.v()) {
                    super.b.e(z[13] + il1 + z[15], true);
                    if (!flag)
                        continue;
                }
                if (il1.u())
                    super.b.e(z[13] + il1 + z[19] + "+" + z[18], true);
                il1.a(this);
            }
        }
    }

    private void l() {
        Enumeration enumeration;
        enumeration = e();
        while (enumeration.hasMoreElements()) {
            mt mt1 = (mt) enumeration.nextElement();
            String s = mt1.j();
            try {
                if ((m == null || !m.b(mt1)) && !super.d.a(s, z[6]) && !super.d.a(s, z[4])) {
                    lu lu1 = super.d.a(s, z[3], "J");
                    if (lu1 == null) {
                        long l1 = ao.a(mt1, super.d);
                        lu1 = mt1.a(l1, super.d);
                    }
                    lu lu2 = (lu) super.i.remove(lu1);
                    super.j.put(lu1, lt.a(s));
                }
            } catch (tb tb1) {
                super.b.a(z[5] + tb1.getMessage() + "'");
            }
        }
    }

    public final void a(lu lu1, Hashtable hashtable, mt mt1)
            throws wb {
        lu lu2 = (lu) super.i.remove(lu1);
        if (lu2 != null) {
            Object obj = super.j.put(lu1, lt.a(mt1.j()));
            mt mt2 = lu1.P();
            if (mt2 != null)
                a(mt2, hashtable, mt1, true);
        }
    }

    final void a(mt mt1, Hashtable hashtable, mt mt2)
            throws wb {
        cv cv;
        boolean flag;
        flag = tb.b;
        cv = mt1.U();
        while (cv.hasMoreElements()) {
            lu lu1 = (lu) cv.nextElement();
            if (!lu1.D() && !lu1.G())
                a(lu1, hashtable, mt2);
        }
    }

    private void m() {
        Enumeration enumeration;
        Hashtable hashtable;
        boolean flag;
        flag = tb.b;
        enumeration = e();
        hashtable = new Hashtable();
        while (enumeration.hasMoreElements()) {
            mt mt1 = (mt) enumeration.nextElement();
            try {
                a(mt1, hashtable, mt1, true);
            }
            catch (xb xb1) {
                super.b.e(z[21] + lt.a(xb1.a()) + z[22]);
            }
            catch (wb wb1) {
                super.b.e(z[20] + wb1.getMessage());
            }
        }
    }

    final void a(Enumeration enumeration, int i) {
        boolean flag;
        flag = tb.b;
        super.e = new Hashtable(px.a(i));
        super.f = new Hashtable(px.a(i));
        super.i = new Hashtable(px.a(i * 5));
        super.j = new Hashtable(px.a(i * 5));
        while (enumeration.hasMoreElements()) {
            cv cv;
            mt mt1 = (mt) enumeration.nextElement();
            super.e.put(mt1, mt1);
            cv = mt1.U();
            while (cv.hasMoreElements()) {
                Object obj = cv.nextElement();
                super.i.put(obj, obj);
            }
        }
    }

    final void a(String s, mt mt1, Hashtable hashtable, mt mt2)
            throws wb {
        Object obj;
        boolean flag;
        flag = tb.b;
        if (b(s, z[11])) {
            a(mt1, hashtable, mt2);
            fh fh1 = fh.b(s);
            obj = fh1.q();
            while (((fh) obj).w()) {
                mt mt3 = ((fh) (obj)).c();
                a(mt3, hashtable, mt2);
                obj = ((fh) (obj)).q();
                if (obj == null)
                    break;
            }
        } else {
            lu lu1 = null;
            if ((lu1 = super.d.a(s, z[9], z[7])) == null || !lu1.D()) {
                a(mt1, hashtable, mt2);
            } else {
                int i;
                int j;
                try {
                    obj = mt1.a(super.d);
                    i = ((Vector) (obj)).size();
                    for (j = 0; j < i; j++) {
                        lu lu2 = (lu) ((Vector) (obj)).elementAt(j);
                        a(lu2, hashtable, mt2);
                    }
                } catch (tb tb1) {
                    super.b.e(z[8] + s + z[10] + tb1.getMessage());
                }
            }

        }
    }

    final void a(mt mt1, Hashtable hashtable, mt mt2, boolean flag)
            throws wb {
        boolean flag1 = tb.b;
        if (mt1 == null || hashtable.containsKey(mt1)) {

        } else {
            fh fh1;
            hashtable.put(mt1, mt1);
            String s = mt1.j();
            if (!mt1.E() && (b(mt1.j(), z[12]) || b(mt1.j(), z[11]))) {
                a(mt1, mt2);
                a(s, mt1, hashtable, mt2);
            }
            fh1 = fh.b(s);
            fh fh2 = fh1.q();
            if (fh2 != null && fh2.w()) {
                mt mt3 = fh2.c();
                a(mt3, hashtable, mt2, false);
            }
            Enumeration enumeration = fh1.p();
            if (enumeration != null) {
                while (enumeration.hasMoreElements()) {
                    fh fh3 = (fh) enumeration.nextElement();
                    mt mt4 = fh3.c();
                    a(mt4, hashtable, mt2, true);
                }
            }
            Enumeration enumeration1 = fh1.l();
            if (enumeration1 != null)
                while (enumeration1.hasMoreElements()) {
                    fh fh4 = (fh) enumeration1.nextElement();
                    mt mt5 = fh4.c();
                    a(mt5, hashtable, mt2, true);
                }
        }
    }

    private static String z(char ac[]) {
        for (int i = 0; i < ac.length; i++) {
            byte key = 0;
            switch (i % 5) {
                case 0:
                    key = 0x2e;
                    break;
                case 1:
                    key = 85;
                    break;
                case 2:
                    key = 4;
                    break;
                case 3:
                    key = 22;
                    break;
                default:
                    key = 2;
                    break;
            }
            ac[i] ^= key;
        }
        return new String(ac).intern();
    }

    static {
        String as[] = new String[23];
        as[0] = "k-mevG;c6qK'mwnG/ar\"M9eeq\016r";
        as[1] = "'\024tfnW<jq\"Z'm{\"K-gzw]<kxq\016&tsaG3msf\0167}6gV<wbk@2WspG4h\177xK1Gzc]&ae\"]!ebgC0jb";
        as[2] = "'\024tfnW<jq\"K-gzw]<kxq\016&tsaG3msf\0167}6gV<wbk@2WspG4h\177xK1Gzc]&ae\"]!ebgC0jb";
        as[3] = "]0v\177cB\003adqG:jCKj";
        as[4] = "D4rw-B4jq-\\0bzgM!+FpA-}";
        as[5] = "m:qzf\016;kb\"^'kug]&$szG&p\177lIuwspG4h\177xK1$unO&wsq\016o$1";
        as[6] = "D4rw-B4jq-k;q{";
        as[7] = "u\031nwtOzmy-a7nsaZ\006pdgO8B\177gB1";
        as[8] = "k'vyp\016\"l\177nKuexcB,~\177lIu#eg\\<ezRK'w\177qZ0jbDG0hrq\tumx\"M9eeq\016r";
        as[9] = "]0v\177cB\005adqG&pslZ\023msnJ&";
        as[10] = "\tu>6";
        as[11] = "D4rw-G:+SzZ0vxcB<~w`B0";
        as[12] = "D4rw-G:+Eg\\<ezkT4fzg";
        as[13] = "~4vwoK!ad\"\t";
        as[14] = "'\020|\177qZ<jq\"}0v\177cB<~sf\0166hwq]0w6rO'e{gZ0ve8";
        as[15] = "\tumx\"\t0|\177qZ<jqQK'mwnG/arAB4weg]r$evO!a{g@!$uc@;kb\"[&a6vF0$1>B<j}<\tuwolZ4|8\"g!$akB9$tg\016<cxm\\0`8";
        as[16] = "'\\&";
        as[17] = "\tumx\"\t0|\177qZ<jqQK'mwnG/arAB4weg]r$evO!a{g@!$\177q\016;kb\"Ougzc]&$szM9qekA;$fc\\4isvK'*6KZus\177nBufs\"G2jypK1*";
        as[18] = "\tupwe\000uP~g\016!eq\"Y<hz\"L0$\177e@:vsf\0";
        as[19] = "\tumx\"\t0|\177qZ<jqQK'mwnG/arAB4weg]r$uc@;kb\"[&a6vF0$1";
        as[20] = "k'vyp\016\"l\177nKuwsvZ<jq\"K-mevG;c6qK'mwnG/ar\"M9eeqK&$szM9qekA;w68\016";
        as[21] = "k'vyp\016\"l\177nKuwsvZ<jq\"K-mevG;c6qK'mwnG/ar\"M9eeqK&$szM9qekA;w68\0166hwq]u#";
        as[22] = "\tujyv\0163kclJ{";
        for (int i = 0; i < as.length; i++) {
            as[i] = z(as[i].toCharArray());
        }
        z = as;
    }
}